package com.kangye.learnstudent.service.impl;

import com.kangye.learnstudent.entity.QuestionBank;
import com.kangye.learnstudent.entity.StudentPaper;
import com.kangye.learnstudent.mapper.TypePaperMapper;
import com.kangye.learnstudent.service.TypePaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: learndeduo
 * @description: 实现试卷类型逻辑接口
 * @author: 索腾龙
 * @create: 2021-05-17 11:08
 **/
@Service
@Transactional
public class TypePaperServiceImpl implements TypePaperService {
    @Autowired
    private TypePaperMapper typePaperMapper;

    @Override
    public List<QuestionBank> PaperFindById(Integer typeId) {

        return typePaperMapper.PaperFindById(typeId);
    }

    @Override
    public List<StudentPaper> answerTime(Integer spId) {
        return typePaperMapper.answerTime(spId);
    }
}